package com.juqimiao.linn.extension.mock.customer.commerce;

import com.juqimiao.linn.context.BusinessPointContext;
import com.juqimiao.linn.context.ContextManager;
import com.juqimiao.linn.extension.Extension;
import com.juqimiao.linn.extension.mock.customer.Customer;
import com.juqimiao.linn.extension.mock.customer.CustomerInspectionRuleExtPt;

@Extension(Interface = CustomerInspectionRuleExtPt.class,
    BusinessId = "CO")
public class CustomerInspectionRuleCommerceExtension implements CustomerInspectionRuleExtPt {
    @Override
    public String approve(Customer customer) {
        return ((BusinessPointContext) ContextManager.getContext(BusinessPointContext.class)).getCurrent().getUniqueId();
    }
}
